package net.j4love.spring.boot.runner;

import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

import java.util.Arrays;

/**
 * @author He Peng
 * @create 2017-05-19 13:57
 * @update 2017-05-19 13:57
 * @see
 */

@Order(1)
@Component
public class MyCommandLineRunner implements CommandLineRunner {

    @Override
    public void run(String... args) throws Exception {

        System.err.println("args : " + Arrays.deepToString(args) + "\r\n" +
                "commandline runner");
    }
}
